<div>
	<yu-panel title="解析规则定义">
		<yu-xform related-table-name="refTable" form-type="search" v-model="searchFormdata">
			<yu-xform-group :column="4">
				<yu-xform-item label="解析规则" placeholder="解析规则" ctype="select" name="scriptReader" data-code="SCRIPT_READER"></yu-xform-item>
				<yu-xform-item label="解析规则名称" placeholder="解析规则名称" ctype="input" name="jobTypeName"></yu-xform-item>
			</yu-xform-group>
		</yu-xform>
		<yu-toolBar>
			<yu-button @click="addFn" v-if="addFnButton">新增</yu-button>
			<yu-button @click="modifyFn" v-if="updateFnButton">修改</yu-button>
			<yu-button @click="deleteFN" v-if="deleteFnButton">删除</yu-button>
		</yu-toolBar>
		<div ref="tableBox"  style="width: 100%;overflow: auto;">
			<yu-xtable ref="refTable" :height="tbHeight" row-number :data-url="dataUrl" selection-type="radio">
				<!-- <yu-xtable-column label="解析规则编号" :show-overflow-tooltip="true" prop="jobTypeCode"></yu-xtable-column> -->
				<yu-xtable-column label="解析规则名称" :show-overflow-tooltip="true" prop="jobTypeName"></yu-xtable-column>
				<yu-xtable-column label="解析器" :show-overflow-tooltip="true" prop="scriptReader" data-code="SCRIPT_READER"></yu-xtable-column>
				<yu-xtable-column label="脚本文件位置" :show-overflow-tooltip="true" prop="scriptFileParam"></yu-xtable-column>
				<yu-xtable-column label="源表位置" :show-overflow-tooltip="true" prop="srcTabParam"></yu-xtable-column>
				<yu-xtable-column label="目标环境位置" :show-overflow-tooltip="true" prop="tarEnvParam"></yu-xtable-column>
				<yu-xtable-column label="目标表位置" :show-overflow-tooltip="true" prop="tarTabParam"></yu-xtable-column>			
				<yu-xtable-column label="创建时间" width="150px" :show-overflow-tooltip="true" prop="createTime"></yu-xtable-column>
				<yu-xtable-column label="修改时间" width="150px" :show-overflow-tooltip="true" prop="updateTime"></yu-xtable-column>
			</yu-xtable>
		</div>
	</yu-panel>
	<yu-dialog :title="viewTitle" :visible.sync="dialogVisible">
		<yu-xform ref="refForm" v-model="formdata" label-width="150px" >
			<yu-xform-group>
				<yu-xform-item label="解析规则编号" :disabled="!addFlag"  :rules="rulesone" ctype="input" maxlength="32" rules="required" name="jobTypeCode" :colspan="12" :disabled="!addFlag"></yu-xform-item>
				<yu-xform-item label="解析规则名称" ctype="input" maxlength="120" name="jobTypeName" :colspan="12" rules="required"></yu-xform-item>
				<yu-xform-item label="解析器"  ctype="select" data-code="SCRIPT_READER" @change="changeRequire"  :colspan="12" name="scriptReader"
				 rules="required"></yu-xform-item>
				<yu-xform-item label="脚本文件位置" v-if="scriptFileParamX" ctype="input" maxlength="64" name="scriptFileParam" :colspan="12" rules="required"></yu-xform-item>
				<yu-xform-item label="脚本文件位置" v-if="!scriptFileParamX" ctype="input" maxlength="64" name="scriptFileParam" :colspan="12" ></yu-xform-item>
				<yu-xform-item label="配置文件路径" v-if="confFileX" ctype="input" maxlength="64" name="confFile" :colspan="12" rules="required"></yu-xform-item>
				<yu-xform-item label="配置文件路径" v-if="!confFileX" ctype="input" maxlength="64" name="confFile" :colspan="12" ></yu-xform-item>
				<yu-xform-item label="补充配置文件路径" ctype="input" maxlength="64" name="confFileSup" :colspan="12" ></yu-xform-item>
				<yu-xform-item label="配置文件内容" ctype="textarea" maxlength="64" name="confFileCont" :colspan="24" ></yu-xform-item>
				<yu-xform-item label="源表环境位置" v-if="needSrcEnvParam"  ctype="input" maxlength="64" name="srcEnvParam" :colspan="12" rules="required"></yu-xform-item>
				<yu-xform-item label="源表环境位置" v-if="!needSrcEnvParam" ctype="input" maxlength="64" name="srcEnvParam" :colspan="12" ></yu-xform-item>
				<yu-xform-item label="源表数据库位置" v-if="srcSchameParamX" ctype="input" maxlength="64" name="srcSchameParam" :colspan="12" rules="required"></yu-xform-item>
				<yu-xform-item label="源表数据库位置" v-if="!srcSchameParamX" ctype="input" maxlength="64" name="srcSchameParam" :colspan="12" ></yu-xform-item>
				<yu-xform-item label="源表位置" ctype="input" v-if="srcTabParamX" maxlength="64" rules="required" name="srcTabParam" :colspan="12" ></yu-xform-item>
				<yu-xform-item label="源表位置" ctype="input" v-if="!srcTabParamX" maxlength="64" name="srcTabParam" :colspan="12" ></yu-xform-item>
				<yu-xform-item label="源表后缀" ctype="input" maxlength="64" name="srcTabSuffix" :colspan="12" ></yu-xform-item>
				<yu-xform-item label="目标环境位置" ctype="input" v-if="needTarEnvParam" maxlength="64" rules="required" name="tarEnvParam" :colspan="12" ></yu-xform-item>
				<yu-xform-item label="目标环境位置" ctype="input" v-if="!needTarEnvParam" maxlength="64"   name="tarEnvParam" :colspan="12" ></yu-xform-item>

				<yu-xform-item label="目标数据库位置" ctype="input" v-if="tarSchameParamX" maxlength="64" rules="required" name="tarSchameParam" :colspan="12" ></yu-xform-item>
				<yu-xform-item label="目标数据库位置" ctype="input" v-if="!tarSchameParamX" maxlength="64"  name="tarSchameParam" :colspan="12" ></yu-xform-item>
				<yu-xform-item label="目标表位置" ctype="input" maxlength="64" v-if="tarTabParamX" rules="required" name="tarTabParam" :colspan="12" ></yu-xform-item>
				<yu-xform-item label="目标表位置" ctype="input" maxlength="64" v-if="!tarTabParamX"  name="tarTabParam" :colspan="12" ></yu-xform-item>
				<yu-xform-item label="目标表后缀" ctype="input" maxlength="64"  name="tarTabSuffix" :colspan="12" ></yu-xform-item>
			</yu-xform-group>
		</yu-xform>
		<div class="yu-grpButton">
			<yu-button v-show="cancelBtnShow" @click="cancelFn">取消</yu-button>
			<yu-button type="primary"  @click="saveFn">保存</yu-button>
		</div>
	</yu-dialog>

</div>